//
//  UserInfoModel.h
//  SDSY
//
//  Created by 蓝布鲁 on 2017/3/26.
//  Copyright © 2017年 蓝布鲁. All rights reserved.
//

#import "BaseModel.h"
#import "UserModel.h"

@interface UserInfoModel : BaseModel<NSCoding>

// 属性,用setValue
@property (nonatomic,retain)NSString *expiration;
@property (nonatomic,retain)NSString *stu_id;
@property (nonatomic,retain)NSString *token;
@property (nonatomic, retain, readonly)NSString *deviceCode;
@property (nonatomic, retain)UserModel *userModel;

// 单例
+ (instancetype) shareInstance;

// 检查登录状态
- (BOOL) checkLogin;

// 退出登录
- (void) logout;

// 保存模型
-(void)saveToFile;

@end
